package com.zxq.exchange.task;


import com.zxq.exchange.IExchange;
import com.zxq.exchange.cache.PlatformCache;
import com.zxq.exchange.model.ExchangeDTO;
import com.zxq.exchange.register.NotifyDeviceRegister;

/**
 * 平台发起指令服务
 */
@Deprecated
public class PlatformInitiateTask implements Runnable {



    @Override
    public void run() {
        ExchangeDTO exchangeDTO = PlatformCache.getPlatformCache().offer();
        NotifyDeviceRegister.getInstance().notifyMessage(exchangeDTO);
    }

}
